package com.example.demofeignclientwithouteurekaribbon;


import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.client.ServiceInstance;
import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.cloud.client.loadbalancer.LoadBalancerClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;

import java.util.Map;

@RestController
public class MyFeignClient {

    @Autowired
    private DemoFeignClientWithoutEurekaRibbonApplication.UserloginService userLoginService;

    @RequestMapping(value="/ulogin",produces = "application/json;charset=UTF-8")
    public Map userlogin() {
        return userLoginService.myUserlogin();
    }
}

